
<template>
	<view class="top">
		<i class="iconfont icon-geren2"></i>
		<text>{{formData.Name}}</text>
		<i class="iconfont icon-a-Frame133"></i>
		<text>{{formData.CardNo}}</text>
		<i v-if="formData.Sex=='男'" class="iconfont icon-sex_man"></i>
		<i v-else class="iconfont icon-sex_woman"></i>
		<text>{{formData.Sex}}</text>
	</view>
	<view class="content">
			<uni-forms :modelValue="formData" label-width='80px' label-align="right">
					<uni-forms-item label="随访日期" required  name="name"  class="uni-mt-5">
						<view class="dataView">
							<text class="tWidth">
								<!-- <uni-datetime-picker @maskClick="maskClick" type="date" return-type="data" v-model="formData.suifangRiQi"/> -->
								<uni-datetime-picker type="date" return-type="data" :clear-icon="false" v-model="formData.SuifangRiqi"/>
							</text>
							<text><button class="greenBold uni-ml-4" @click="getLatelyFun()">载入最近体检数据</button></text>
						</view>
					</uni-forms-item>
					<uni-forms-item label="姓名"   >
							<uni-easyinput v-model="formData.Name" style="width: 45%;" :disabled="true"  :clearable="false"/>
					</uni-forms-item>
					<uni-forms-item label="随访方式" >
						<uni-data-checkbox v-model="formData.SuifangFangshi" :localdata="SuifangFangshi" />
					</uni-forms-item>
					<uni-forms-item label="症状" >
						<uni-data-checkbox v-model="formData.Zhengzhuang" multiple :localdata="zhengzhuang" />
					</uni-forms-item>
					<uni-forms-item label="其他症状"   >
							<uni-easyinput v-model="formData.Zhengzhuangqita" placeholder="无" />
					</uni-forms-item>
					<view class="hrView">
						<text>体征</text>
						<hr />
					</view>
				
					<view class="blood uni-mt-10">
						<uni-forms-item label="血压"     label-width="60px">
								<uni-easyinput v-model="formData.TizhengXueyaSsy" :clearable="false" class="uni-mr-3"  placeholder="收缩压" />
						</uni-forms-item>
						<uni-forms-item class="uni-ml-5" :clearable="false" label-width="40px">
								<uni-easyinput v-model="formData.TizhengXueyaSzy" :clearable="false"  placeholder="舒张压"/>
								<button class="uni-ml-5">测量血压</button>
						</uni-forms-item>
					</view>
					<view class="blood">
						<uni-forms-item label="身高"     label-width="60px">
								<uni-easyinput @bule="numberBMI()" v-model="formData.TizhengShengao" class="uni-mr-3" :clearable="false" placeholder="cm" />
						</uni-forms-item>
						<uni-forms-item label="体重"   class="uni-ml-5" :clearable="false" label-width="40px">
								<uni-easyinput  @bule="numberBMI()" v-model="formData.TizhengTizhong1" :clearable="false"  placeholder="kg"/>
								<button class="uni-ml-5">测量体重</button>
						</uni-forms-item>
					</view>
				
					<view class="blood">
						<uni-forms-item label="BMI"     label-width="60px">
								<uni-easyinput v-model="formData.TizhengBmi1" :clearable="false" />
						</uni-forms-item>
					</view>	
					<uni-forms-item label="足背动脉博动"  label-width="120px">
						<uni-data-checkbox v-model="formData.TizhengZubeidongmaibodong" :localdata="ZuBeiDongMaiBoDong" />
					</uni-forms-item>
					<uni-forms-item label="其他症状"   >
							<uni-easyinput v-model="formData.TizhengQita" placeholder="无" />
					</uni-forms-item>
					<view class="hrView">
						<text>生活方式指导</text>
						<hr />
					</view>
					<view class="blood uni-mt-10">
						<uni-forms-item label="日吸烟量"    :label-width="labelWidth110">
								<uni-easyinput v-model="formData.ShenghuoXiyanRixiyanling1" :clearable="false" placeholder="0" />
						</uni-forms-item>
					<uni-forms-item label="日饮酒量"    :label-width="labelWidth110">
							<uni-easyinput v-model="formData.ShenghuoYinjiuRiyinjiuliang1" :clearable="false" placeholder="0" />
					</uni-forms-item>
					</view>
					<view class="blood">
						<uni-forms-item label="运动次数/周"     :label-width="labelWidth110">
								<uni-easyinput v-model="formData.ShenghuoYundongPinlv1" :clearable="false" placeholder="0" />
						</uni-forms-item>
						<uni-forms-item label="运动分钟/次"    :label-width="labelWidth110">
								<uni-easyinput v-model="formData.ShenghuoYundongShichang1" :clearable="false" placeholder="0"/>
						</uni-forms-item>
					</view>
					<view class="blood">
						<uni-forms-item label="目标次数/周"     :label-width="labelWidth110">
								<uni-easyinput v-model="formData.ShenghuoYundongPinlv2" :clearable="false" placeholder="0" />
						</uni-forms-item>
						<uni-forms-item label="目标分钟/次"    :label-width="labelWidth110">
								<uni-easyinput v-model="formData.ShenghuoYundongShichang2" :clearable="false" placeholder="0"/>
						</uni-forms-item>
					</view>
					<view class="blood">
						<uni-forms-item label="主食量克/天"     :label-width="labelWidth110">
								<uni-easyinput v-model="formData.ShenghuoZhushiliang1" :clearable="false" placeholder="0" />
						</uni-forms-item>
					</view>
					<uni-forms-item label="心里调整" :label-width="labelWidth110">
						<uni-data-checkbox v-model="formData.ShenghuoXinlitiaozheng" :localdata="XinLiTiaoZheng" />
					</uni-forms-item> 
					<uni-forms-item label="遵医行为" :label-width="labelWidth110">
						<uni-data-checkbox v-model="formData.ShenghuoZunyixingwei" :localdata="XinLiTiaoZheng" />
					</uni-forms-item>
					<view class="hrView">
						<text>辅助检查</text>
						<hr />
					</view>  
					<uni-forms-item label="辅助检查日期"  label-width="150"  class="uni-mt-10">	
						<uni-datetime-picker type="date" return-type="data" :clear-icon="false" v-model="formData.FuzhujianchaJianchariqi"/>
					</uni-forms-item>
					<view class="blood">
						<uni-forms-item label="空腹血糖 mmol/L" label-width="120">
								<uni-easyinput v-model="formData.FuzhujianchaKongfuxuetang" :clearable="false" placeholder="0" />
						</uni-forms-item>
						<uni-forms-item label="餐后血糖 mmol/L"    label-width="120">
								<uni-easyinput v-model="formData.FuzhujianchaCanhouxuetang" :clearable="false" placeholder="0"/>
						</uni-forms-item>
					</view>					
					<view class="blood">
						<uni-forms-item label="随机血糖 mmol/L" label-width="120">
								<uni-easyinput v-model="formData.FuzhujianchaSuijixuetang" :clearable="false" placeholder="0" />
						</uni-forms-item>
						<uni-forms-item label="糖化血红蛋白" label-width="120">
								<uni-easyinput v-model="formData.FuzhujianchaTanghuaxuehongdanbai" :clearable="false" placeholder="0"/>
						</uni-forms-item>
					</view>
					
					<uni-forms-item label="辅助检查名称"   :label-width="labelWidth110">
							<uni-easyinput v-model="formData.FuzhujianchaQitajianchaName" :clearable="false" placeholder="无" />
					</uni-forms-item>
					<uni-forms-item label="辅助检查结果"   :label-width="labelWidth110">
							<uni-easyinput v-model="formData.FuzhujianchaQitajianchaJieguo" :clearable="false" placeholder="无" />
					</uni-forms-item>
					<view class="hrView">
						<text>目前用药情况</text>
						<hr />
					</view>
					<view class="">
						<uni-forms-item label="药品名称1"  style="height: 40rpx" class="uni-mt-10"   >
							<view class="newBox">
								<uni-easyinput v-model="formData.YaowuMingcheng"  :clearable="false"/>
								<button @click="goDrugs(1)">选择药品</button>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="每日/次" style="height: 40rpx" class="blueColor"   >
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.YaowuPinci" placeholder="次"  :clearable="false"/>
								</view>
								<view>
									<uni-forms-item label="每次"    label-width="100rpx">
										<uni-easyinput v-model="formData.YaowuYongliang"  :clearable="false"/>
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
						<uni-forms-item label="备注" style="height: 40rpx" class="blueColor"    label-width="160rpx">
							<uni-easyinput v-model="formData.YaowuBeizhu"  :clearable="false" />
						</uni-forms-item>
					</view>
					<view>
						<uni-forms-item label="药品名称2" style="height: 40rpx;margin-top: 70rpx;"   >
							<view class="newBox">
								<uni-easyinput v-model="formData.YaowuMingcheng1"  :clearable="false"/>
								<button @click="goDrugs(2)">选择药品</button>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="每日/次" style="height: 40rpx" class="blueColor"   >
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.YaowuPinci1" placeholder="次"  :clearable="false" />
								</view>
								<view>
									<uni-forms-item label="每次"    label-width="100rpx">
										<uni-easyinput v-model="formData.YaowuYongliang1"  :clearable="false" />
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
						<uni-forms-item label="备注" style="height: 40rpx" class="blueColor" label-width="160rpx">
							<uni-easyinput v-model="formData.YaowuBeizhu1"  :clearable="false" />
						</uni-forms-item>
					</view>
					<view class="">
						<uni-forms-item label="药品名称3"  style="height: 40rpx;margin-top: 70rpx;" class="uni-mt-10"   >
							<view class="newBox">
								<uni-easyinput v-model="formData.YaowuMingcheng2"  :clearable="false"/>
								<button @click="goDrugs(3)">选择药品</button>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="每日/次" style="height: 40rpx" class="blueColor">
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.YaowuPinci2" placeholder="次"  :clearable="false"/>
								</view>
								<view>
									<uni-forms-item label="每次"  label-width="100rpx">
										<uni-easyinput v-model="formData.YaowuYongliang2"  :clearable="false"/>
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
						<uni-forms-item label="备注" style="height: 40rpx" class="blueColor" label-width="160rpx">
							<uni-easyinput v-model="formData.YaowuBeizhu2"   :clearable="false"/>
						</uni-forms-item>
					</view>
					<view class="">
						<uni-forms-item label="胰岛素种类" label-width="80" class="uni-mt-10" style="height: 40rpx"  >
							<view class="newBox">
								<uni-easyinput v-model="formData.YaowuYidaosuZhonglei"  :clearable="false"/>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="胰岛素用法" style="height: 40rpx" label-width="80" class="blueColor" >
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.YaowuYidaosuYongfa"  :clearable="false"/>
								</view>
								<view>
									<uni-forms-item label="胰岛素用量" label-width="80">
										<uni-easyinput v-model="formData.YaowuYidaosuYongliang"  :clearable="false"/>
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
					</view>
					<uni-forms-item label="服药依从性" :label-width="labelWidth110">
						<uni-data-checkbox v-model="formData.YaowuFuyaoyicongxing" :localdata="FuYaoYiCongXing" />
					</uni-forms-item>
					
					<uni-forms-item class="badness" label="药物不良反应" :label-width="labelWidth110">
						<view style="display: flex;">
							<view class="">
							<uni-data-checkbox v-model="formData.YaowuYaowubuliangfanying" :localdata="YaoWuBuLiangFanYing" />
						</view>
						<view class="">
							<uni-easyinput  placeholder="不良反应内容" :clearable="false"/>
						</view>
						</view>
					</uni-forms-item>
					<uni-forms-item label="低糖反应" :label-width="labelWidth110">
						<uni-data-checkbox v-model="formData.DiTangFanYing" :localdata="DiTangFanYing" />
					</uni-forms-item>
					<uni-forms-item label="此次随访分类" :label-width="labelWidth110">
						<uni-data-checkbox v-model="formData.SuiFangFenLei"  :localdata="SuiFangFenLei" />
					</uni-forms-item>
					<view class="hrView uni-mt-10 uni-mb-5">
						<text>转诊</text>
						<hr />
					</view>
					<uni-forms-item label="转诊原因"    :label-width="labelWidth110">
						<uni-easyinput v-model="formData.ZhuanzhenYuanyin" :clearable="false" />
					</uni-forms-item>
					<uni-forms-item label="机构及科别"    :label-width="labelWidth110">
						<uni-easyinput v-model="formData.ZhuanzhenJigou" :clearable="false" />
					</uni-forms-item>
					<view class="hrView">
						<hr />
					</view>
					<uni-forms-item label="下次随访日期"  name="name" :label-width="labelWidth110"  class="uni-mt-5">
						<uni-datetime-picker type="date" return-type="data" :clear-icon="false" v-model="formData.Xiacisuifangriqi"/>
					</uni-forms-item>
					<uni-forms-item label="医生签名"  style="height: 50px;" :label-width="labelWidth110" >
						 <image  class="signature" @click="goSignature(1)" :src="formData.YishengQianMing" mode="" />
					</uni-forms-item>
					<uni-forms-item label="录入人"  :label-width="labelWidth110" >
						<uni-easyinput v-model="formData.Lururen" />
					</uni-forms-item>
					<uni-forms-item label="居民签名" style="height: 50px;" :label-width="labelWidth110" >
							 <image  class="signature" @click="goSignature(2)" :src="formData.jumingQianMing" mode="" />
					</uni-forms-item>
					<uni-forms-item label="指导建议" :label-width="labelWidth110" >
						<uni-easyinput type="textarea" v-model="formData.Jiankangzhidao" />
					</uni-forms-item>
				</uni-forms>
				<button @click="submitForm" class="submitBut">保存</button>
				<view class="uni-mt-10" style="height: 10rpx;"></view>
	</view>
</template>

<script>
	import {addTNB,addTNBForm,getTNBDetails,   addSuifang,getDetails,getSuifang,addSuifangForm,getLately} from '@/api/index.js'
	export default {
		data() {
			return {
				SuifangFangshi:[{text:'门诊',value:'1'},{text:'家庭',value:'2'},{text:'电话',value:'3'}],
				zhengzhuang:[{text:'无症状',value:1},{text:'多饮',value:2},{text:'多食',value:3},{text:'多尿',value:4},{text:'实例模糊',value:5},{text:'感染',value:6},{text:'手脚麻木',value:7},{text:'下肢浮肿',value:8},{text:'体重明显下降',value:9}],
				SheYan_MuQian:[{text:'轻',value:1},{text:'中',value:2},{text:'重',value:3}],
				XinLiTiaoZheng:[{text:'良好',value:'1'},{text:'一般',value:'2'},{text:'差',value:'3'}],
				FuYaoYiCongXing:[{text:'规律',value:'1'},{text:'间断',value:'2'},{text:'不服药',value:'3'}],
				YaoWuBuLiangFanYing:[{text:'有',value:'1'},{text:'无',value:'2'}],
				ZuBeiDongMaiBoDong:[{text:'触及及正 ',value:'1'},{text:'减弱(双侧 左侧 右侧)',value:'2'},{text:'消失(双侧 左侧 右侧)',value:'3'}],
				SuiFangFenLei:[{text:'控制满意',value:'1'},{text:'控制不满意',value:'2'},{text:'不良反应',value:'3'},{text:'并发症',value:'4'}],
				DiTangFanYing:[{text:'无',value:'1'},{text:'偶尔',value:'2'},{text:'频繁',value:'3'}],
				labelWidth110:'110px',
				formData:{
					TizhengBmi1:this.TizhengBmiCom
				},
				NewFormData:{},
				ID:'',
				AppId:'',
				yaopinNum:'',
				yiimgUrl:'',
				juimgUrl:'',
				imgNum:'', // 判断医生前面还是居民签名
				msg:'',
				TNBMap:{
					'TizhengXueyaSsy':'yiban_xieya_zuo',
					'TizhengXueyaSzy':'yiban_xieya_zuo1',
					'TizhengShengao':'yiban_shengao',
					'TizhengTizhong1':'yiban_tizhong',
					'TizhengBmi1':'yiban_tizhi',
					'ShenghuoXiyanRixiyanling1':'shenghuo_xiyan_zhuangkuang',
					'ShenghuoYinjiuRiyinjiuliang1':'shenghuo_yinjiu_rijunjiuliang',
					'FuzhujianchaKongfuxuetang':'fuzhu_kongfu',
					'YaowuMingcheng':'yaowu_mingcheng',
					'YaowuMingcheng1':'yaowu_mingcheng1',
					'YaowuMingcheng2':'yaowu_mingcheng2',
					'YaowuPinci': 'yaowu_pinci',
					'YaowuPinci1': 'yaowu_pinci1',
					'YaowuPinci2': 'yaowu_pinci2',
					'YaowuYongliang':'yaiwu_yongliang',
					'YaowuYongliang1':'yaiwu_yongliang1',
					'YaowuYongliang2':'yaiwu_yongliang2',
					'YaowuFuyaoyicongxing':'yaowu_yicongxing'
				}
			}
		},
		onLoad(option){
			this.msg = option.msg
			this.ID = option.Id
			this.AppId = option.appId
			if(option.Id){ // 存在编辑
				getTNBDetails(option.Id).then(res=>{ // 随访记录详情
					this.formData = JSON.parse(JSON.stringify({...res}))
					this.NewFormData =JSON.parse(JSON.stringify({...res})) 
					this.formData.Zhengzhuang = res.Zhengzhuang?.split(',').map(Number)
					this.formData.TizhengBmi1 = this.TizhengBmiCom
				})
			}else{ // 不存在新增
			addTNB(option.appId).then(res=>{
				this.formData = JSON.parse(JSON.stringify({...res[0]}))
				this.NewFormData =JSON.parse(JSON.stringify({...res[0]})) 
				this.formData.Zhengzhuang = res[0].Zhengzhuang?.split(',').map(Number) 
				this.formData.TizhengBmi1 = this.TizhengBmiCom
				this.formData.AppId = option.appId
			})
				
			}
		},
		methods: {
			submitForm(){
				this.formData.Zhengzhuang ? this.formData.Zhengzhuang = this.formData.Zhengzhuang.toString():''
				let form = this.findDifferentValues(this.formData,this.NewFormData)
				this.formData.Xiacisuifangriqi = this.formData.Xiacisuifangriqi ? this.formData.Xiacisuifangriqi :this.getTime(this.formData.SuifangRiqi)
				addTNBForm(this.formData).then(res=>{
					if(res=="1" || res.Id != '0'){
						uni.showToast({
							icon: 'none',
							title: '保存成功'
						})
						setTimeout(()=>{return uni.navigateBack({url:'/pages/start/start'})},2000)
					}
				})
			},
			getTime(inputDateStr){
				// 将字符串转换为日期对象
				var inputDate = new Date(inputDateStr);
				// 将日期向后延迟三个月
				inputDate.setMonth(inputDate.getMonth() + 3);
				// 将延迟后的日期转换为字符串
				var delayedDateStr = inputDate.toISOString();
				return delayedDateStr
			},
			getLatelyFun(){
				getLately(this.AppId).then(res => {
					if(res.length > 0){
						this.formData.TizhengXueyaSsy = res[0][this.TNBMap.TizhengXueyaSsy]
						this.formData.TizhengXueyaSzy = res[0][this.TNBMap.TizhengXueyaSzy]
						this.formData.FuzhujianchaKongfuxuetang = res[0][this.TNBMap.FuzhujianchaKongfuxuetang]
						this.formData.TizhengShengao = res[0][this.TNBMap.TizhengShengao]
						this.formData.TizhengTizhong1 = res[0][this.TNBMap.TizhengTizhong1]
						this.formData.TizhengBmi1 = res[0][this.TNBMap.TizhengBmi1]
						this.formData.YaowuMingcheng = res[0][this.TNBMap.YaowuMingcheng]
						this.formData.YaowuMingcheng1 = res[0][this.TNBMap.YaowuMingcheng1]
						this.formData.YaowuMingcheng2 = res[0][this.TNBMap.YaowuMingcheng2]
						this.formData.YaowuPinci = res[0][this.TNBMap.YaowuPinci]
						this.formData.YaowuPinci1 = res[0][this.TNBMap.YaowuPinci1]
						this.formData.YaowuPinci2 = res[0][this.TNBMap.YaowuPinci2]
						this.formData.YaowuYongliang = res[0][this.TNBMap.YaowuYongliang]
						this.formData.YaowuYongliang1 = res[0][this.TNBMap.YaowuYongliang1]
						this.formData.YaowuYongliang2 = res[0][this.TNBMap.YaowuYongliang2]
						this.formData.YaowuFuyaoyicongxing = res[0][this.TNBMap.YaowuFuyaoyicongxing]
						this.formData.ShenghuoYinjiuRiyinjiuliang1 = res[0][this.TNBMap.ShenghuoYinjiuRiyinjiuliang1]
						this.formData.ShenghuoXiyanRixiyanling1 = res[0][this.TNBMap.ShenghuoXiyanRixiyanling1]
						uni.showToast({
							icon: 'none',
							title: '载入成功'
						})
					}else{
						uni.showToast({
							icon: 'none',
							title: '无数据'
						})
					}
				})
			},
			findDifferentValues(obj1, obj2) {
			   let result = {};
			   for (let key in obj1) {
			     if (obj1[key] !== obj2[key]) {
			       result[key] = obj1[key];
			     }
			   }
			   return result;
			 },

			goDrugs(val){
				this.yaopinNum = val // 存储判断返回回来的药品是第几个药品
				uni.navigateTo({
					url:`/pages/Drugs/Drugs?msg=${this.msg}`
				})
			},
			maskClick(e){
				console.log('maskClick事件:', e);
			},
			numberBMI(){  // 失去焦点计算体脂
				
			},
			prevDateFun(object){  // 接收返回回来的药品
				if(this.yaopinNum == '1'){
					this.formData.YaowuMingcheng = object.name
					this.formData.YaowuPinci = object.pinci
					this.formData.YaowuYongliang = object.yongliang
					this.formData.YaowuBeizhu = object.beizhu
				}else if(this.yaopinNum == '2'){
					this.formData.YaowuMingcheng1 = object.name
					this.formData.YaowuPinci1 = object.pinci
					this.formData.YaowuYongliang1 = object.yongliang
					this.formData.YaowuBeizhu1 = object.beizhu
				}else if(this.yaopinNum == '3'){
					this.formData.YaowuMingcheng2 = object.name
					this.formData.YaowuPinci2 = object.pinci
					this.formData.YaowuYongliang2 = object.yongliang
					this.formData.YaowuBeizhu2 = object.beizhu
				}else if(this.yaopinNum == '4'){
					this.formData.YaowuMingcheng3 = object.name
					this.formData.YaowuPinci3 = object.pinci
					this.formData.YaowuYongliang3 = object.yongliang
					this.formData.YaowuBeizhu3 = object.beizhu
				}
				
			},
			goSignature(val){
				this.imgNum = val
				uni.navigateTo({
					url:"/pages/signature/signature"
				})
			},
			signatureImg(object){
				if(this.imgNum == '1'){ // 医生签字
					this.formData.YishengQianMing = object
				}else if(this.imgNum == '2'){ // 居民签字
					this.formData.jumingQianMing = object
				}
			}
		},
		computed: {
			TizhengBmiCom() {
				return this.formData.TizhengShengao  && this.formData.TizhengTizhong1  ? 
				(this.formData.TizhengTizhong1 / ((this.formData.TizhengShengao/100)*(this.formData.TizhengShengao/100))).toFixed(2):''
			}
		},
		watch:{
			TizhengBmiCom(newVal, oldVal){
				this.formData.TizhengBmi1 = newVal
			}
		}
	}
</script>

<style lang="scss">
	.uni-easyinput {
	  font-size: 16px; /* 设置输入框的字体大小 */
	  transform: none; /* 取消输入时的放大效果 */
	}
	.content{
		width: 100wh;
		padding: 0 15rpx;
		box-sizing:border-box;
	}
	:deep(.uni-data-checklist){
		top: 12rpx !important;
	}
	.top{
		display: flex;
		font-size: 22rpx;
		background-color: #C9F7CA;
		padding: 0 15rpx;
		height:60rpx;
		line-height: 60rpx;
		text{
			margin-right: 10rpx;
		}
	}
	.dataView{
		display: flex;
		align-items: center;
		button{
			font-size: 26rpx;
			border-radius: 100rpx;
		}
		.tWidth{
			width: 45%;
		}
	}
	.Double{
		display: flex;
		:deep(.uni-select) {
			margin-right: 75rpx;
		}
		.uni-easyinput{
			width: 90%;
		}
	}
	.blood{
		display: flex;
		:deep(.uni-forms-item__content){
			display: flex !important;
			height: 20px;
			 .uni-easyinput__content-input{
				width: 40px !important;
			}
			button{
				font-size: 20rpx;
				border-radius: 100rpx;
				background-color: #009316;
				color: white;
				height: 35px;
				line-height: 35px;
			}
		}
	}
	.hrView{
		position: relative;
		height: 40rpx;
		text{
			padding: 0 15rpx;
			position: absolute;
			display: inline-block;
			background-color: #F5F5F5;
			z-index: 1;
			margin-left: 20rpx;
		}
		hr{
			width: 100%;
			position: absolute;
			top: 20rpx;
			background-color: #dfdfdf;
			border:1px solid #dfdfdf;
			border-bottom:none ;
		}
		button{
			font-size: 22rpx;
			width:200rpx
		}
	}
	// .blueColor >:deep(.uni-forms-item__label){
	// 	color:#4197C6 !important;
	// }
	.badness{
		.uni-easyinput{
			margin-left: 15rpx;
			width: 110px;
		}
	}
	.green{
		background-color: #009316;
		color: white;
	}
	.greenBold{
		background-color: #008989;
		color: white;
	}
	.signature{
		border: 1px solid #dfdfdf;
		height: 200rpx;
		width: 100rpx;
		transform-origin:right;
		transform:rotate(90deg);
	}
	textarea{
		border: 1px solid #dfdfdf;
		width: 100%;
		min-height: 300rpx;
	}
	.submitBut{
		font-size: 20rpx;
		border-radius: 100rpx;
		background-color: #009316;
		color: white;
		width: 20%;
	}
	.newBox{
		display: flex;
		button{
			margin-left: 10rpx;
			font-size: 16rpx;
			height: 70rpx;
			line-height: 70rpx;
			background-color: #009316;
			color: white;
		}
	}

</style>